<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css"  href="../css/style.css" rel="stylesheet">

</head>
<script type="text/javascript">
    function changeCode()  
   {  
       document.getElementById("rc").src="Image.jsp?t="+new Date().getTime();;  
   }  
   function confirm(){
	   
	   
   }
</script>
<body>
	<%-- <%
		session.setAttribute("username", "admin");
	%>
	<a href="ValidateImg.jsp">跳转到session存值页面</a> --%>
	
	<div style="text-align: center;">
		<h3 >用户登录</h3>
	<div>
	<form action="ValidateCode.jsp" method="post"  >
		<div class="top1">用户名:<input type="text" name="username" id="username" style="height: 25px; width: 250px"></div>
		<div class="top1">密    码:<input type="password" name="password" id="password" style="height: 25px; width: 250px;margin-left: 5px"></div>
		<div class="top2">验证码:<img border=0 src="Image.jsp" id="rc" onclick="changeCode()"  class="s"><a href="javascript:changeCode();">看不清？单击换一张图片</a>  </div>
		<div class="top1"><input type="text" name="validatecode"   maxlength=4 id="validatecode" style="height: 25px; width: 250px;margin-left: 55px;margin-top: 10px"></div>
		<div>
			 <input type="submit" class="btn" name="btnRegist" value="登陆">
		</div>
	</form>
	</div>
	</div>
</body>
</html>